package com.thirteengroup.casemg.service.impl;

import com.thirteengroup.casemg.Mapper.transMapper;
import com.thirteengroup.casemg.domain.queryObject;
import com.thirteengroup.casemg.domain.trans;
import com.thirteengroup.casemg.service.ITransService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TransService implements ITransService {
    @Autowired
    transMapper transMapper;
    @Override
    public List<trans> queryAll(queryObject queryObject) {
        return transMapper.selectAllLimit(queryObject);
    }

    @Override
    public void insert(trans t) {
        transMapper.insert(t);
    }

    @Override
    public void delete(Long id) {
        transMapper.delete(id);
    }

    @Override
    public Integer queryCount() {
        return transMapper.selectCount();
    }

}
